@import '~@/styles/element/element-variables';

::v-deep {
    .el {
        &-divider {
            &--horizontal {
                margin: 35px 0;
            }
        }

        &-date {
            &-editor {
                &.el-input {
                    width: 100% !important;;
                }
            }
        }

        &-select,
        &-cascader {
            width: 100% !important;
        }

        &-button--mini--status {
            padding: 4px 10px;
        }
    }

    // 详情
    .detail {
        // 分割线
        &-project {
            display: flex;
            align-items: center;

            &__mark {
                flex: 1;
                margin-right: 6px;
                width: 5px;
                height: 20px;
                background-color: $--color-primary;
                border-radius: 5px;
            }

            &__label {
                color: $--color-primary;
                font-size: 18px;
            }
        }

        &-button {
            &__edit {
                padding: 3px 10px;
                //font-weight: normal;
            }

            &__group__op {
                display: none;
                opacity: .6;

                &:hover {
                    opacity: 1;
                }
            }
        }

        &-label {
            width: 150px !important;
            text-align: right;
        }

        &-intro {}

        //
        &-tag {
            margin-top: -10px;

            .el-tag {
                margin: 10px 10px 0 0;

                &:last-child {
                    margin-right: 0;
                }
            }
        }

        // 经验
        &-experience {
            margin-top: 15px;

            &:first-child {
                margin-top: 0;
            }

            &:hover {
                .detail-button__group__op {
                    display: block;
                }
            }
        }

        // 作品
        &-works {
            &__attachment {
                position: absolute;
                right: 5px;
                bottom: 5px;
                padding: 5px;
                color: #fff;
                font-weight: bold;
                line-height: 1;
                background-color: rgba(#000, .5);
                border-radius: 4px;
                z-index: 99;

                .r-icon {
                    margin-right: 5px;
                }
            }

            &__carousel {
                background-color: #f5f7fa;
            }

            &__card {
                margin-top: 20px;
                min-height: 300px;

                &__image {
                    width: 100%;
                    height: 200px;

                    &__slot {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 100%;
                        height: 100%;
                        font-size: 20px;
                        background-color: #f5f7fa;
                        color: #909399;
                    }
                }

                &__description {
                    border-top: 1px solid #EBEEF5;
                    padding: 10px;

                    &__content {
                        display: -webkit-box;
                        margin-top: 10px;
                        height: 42px;
                        color: $--color-info;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                    }
                }
            }

        }
    }
}

// 头像
.avatar {
    overflow: hidden;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba($--color-primary, .3);
    cursor: pointer;
    z-index: 1;

    &-danger {
        box-shadow: 0 0 0 4px $--color-danger;
    }

    &-success {
        box-shadow: 0 0 0 4px $--color-success;
    }

    &-img {
        position: relative;
        overflow: hidden;
        width: 128px;
        height: 128px;
        line-height: 100px;

        .icon-avatar {
            font-size: 60px;
        }
    }

    // 审核状态
    &-audit {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        //border-radius: 50%;

        &--not {
            color: rgba(#fff, .5);
            font-size: 28px;
            font-weight: bold;
            line-height: 100px;
            text-align: center;
            background-color: rgba($--color-danger, .7);
        }
    }

    &-round {
        //border: 2px solid #fff;
        border-radius: $--border-radius-base;
        box-shadow: 0 0 10px rgba(#000, .2);
    }
}